package md.utm.university.dao;

import java.util.ArrayList;
import java.util.List;

import md.utm.university.model.AbstractPerson;
import md.utm.university.model.Student;

public class StudentManager extends PersonManager {

	public StudentManager() {

	}

	public List<Student> getStudents() {
		List<AbstractPerson> persons = getPersons();
		List<Student> students = new ArrayList<Student>();
		for (AbstractPerson abstractPerson : persons) {
			if (abstractPerson.isStudent()) {
				students.add((Student) abstractPerson);
			}
		}
		return students;
	}

}
